Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor grids permissions refactor, enhancements, and fixes #16653

Open
wants to merge 54 commits into
base: 3.x
Choose a base branch
from

Conversation

smg6511
Copy link
Collaborator

@smg6511 smg6511 commented Nov 29, 2024

Related PR

See also #15919. This is a re-packaging of that PR; this new PR seeks to cover all editor grids across the application and separates out some work (for a future PR) that had been begun around internationalizing core names and descriptions within some of the grids.

This PR is temporarily in draft mode while I finish up some details and ensure all grids have been covered.

@smg6511 smg6511 changed the title Grids permissions rework Editor grids permissions refactor, enhancements, and fixes Nov 29, 2024
@smg6511 smg6511 marked this pull request as draft November 29, 2024 04:34
@opengeek
Copy link
Member

opengeek commented Dec 6, 2024

@smg6511 Is this close to being ready?

@smg6511
Copy link
Collaborator Author

smg6511 commented Dec 6, 2024

@opengeek Yes, very close - been hammering away at it. It should be ready for review by early next week.

Formatting, style, optimization only
Changes to js, css, and Lexicon common to multiple areas of this PR
Changes to both grid list and Context editing page (general info)
Implements new permissions handling and fixes a couple other issues in the Dashboard editing panel:
- Added validation to prevent dup Dashboard names
- Styled toggles to match rest of current UI
Formatting, code style changes only
Hides actions icon for first (currently installed) package
Hides actions icon for unchanged Lexicons
Formatting, style updates only
Updates display of and ability to select row actions (gear icon, bulk actions button); includes update to getViewConfig method in base grid class
Formatting, code style changes only
Formatting, code style changes only
Final functional and minor display changes
Formatting, code style changes only
Updates display of and ability to select row actions (gear icon, bulk actions button). Also fixes index controller so users with view permissions can see the grid of Users. Lastly removes unused method for Users grid class.
Formatting, code styling changes only
Formatting, code style changes only
The new getExtrasNamespaces method was needed in places other than the main Namespaces page (via GetList); made static as well. Also updates GetList to use translatable Creator names.
Consolidate shared methods and config elements into new GridBase class
Remove dev logging
Formatting, code style changes only
Updates display of and ability to select row actions (gear icon). Also adjustments made to base grid class.
Formatting, code style & optimization only
Formatting, code style & optimization changes only
Formatting, code style & optimization changes only
Updates display of and ability to select row actions (gear icon), as well as display of various action buttons. Also adjustments made to base grid class.
Interim base class fixes, updates, additions
Formatting, code style changes only. Also moved menu config from php processor to js class method for consistency.
Formatting, code style changes only
A few new fixes and additions
Apply new permissions methods
Additional cleanup, fine-tuning to application of perms, button creation optimization
Apply new permissions methods
Tweaks, clean up, and application of new create button method to various grids
@smg6511 smg6511 force-pushed the 3.x-grids-permissions-rework branch from 3045679 to 7739175 Compare December 7, 2024 03:12
Copy link

codecov bot commented Dec 7, 2024

Codecov Report

Attention: Patch coverage is 12.29385% with 585 lines in your changes missing coverage. Please review.

Project coverage is 21.38%. Comparing base (b1a02c3) to head (5702f37).
Report is 2 commits behind head on 3.x.

Files with missing lines Patch % Lines
...ion/Processors/System/Dashboard/Widget/GetList.php 0.00% 36 Missing ⚠️
...tion/Processors/Security/Access/Policy/GetList.php 0.00% 33 Missing ⚠️
.../Processors/Workspace/PackageNamespace/GetList.php 0.00% 33 Missing ⚠️
...Revolution/Processors/System/Dashboard/GetList.php 0.00% 28 Missing ⚠️
core/src/Revolution/Sources/modMediaSource.php 0.00% 27 Missing ⚠️
...ssors/Security/Access/UserGroup/Source/GetList.php 0.00% 25 Missing ⚠️
...essors/Security/Access/Policy/Template/GetList.php 0.00% 24 Missing ⚠️
...volution/Processors/System/ContentType/GetList.php 0.00% 24 Missing ⚠️
...ors/Security/Access/UserGroup/Category/GetList.php 0.00% 23 Missing ⚠️
core/src/Revolution/Processors/Source/GetList.php 0.00% 23 Missing ⚠️
... and 27 more
Additional details and impacted files
@@             Coverage Diff              @@
##                3.x   #16653      +/-   ##
============================================
- Coverage     21.53%   21.38%   -0.15%     
- Complexity    10734    10763      +29     
============================================
  Files           565      566       +1     
  Lines         32540    32906     +366     
============================================
+ Hits           7007     7038      +31     
- Misses        25533    25868     +335     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Apply new permissions methods
Formatting, code style changes only
Apply new permissions methods; includes adjustments to base grid class
Formatting, code style changes only
Render links and checkboxes according to user permissions
Remove legacy cls references and mark others for removal
Tweaks and optimizations; fix issue with fields and tvs grids not showing inactive rows properly
@smg6511 smg6511 marked this pull request as ready for review December 11, 2024 04:11
@smg6511 smg6511 added the pr/review-needed Pull request requires review and testing. label Dec 11, 2024
@smg6511
Copy link
Collaborator Author

smg6511 commented Dec 11, 2024

@opengeek @theboxer @Mark-H - Alright, I believe this is finally ready. Hope folks can carve out some time to go through it all ;-) !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/review-needed Pull request requires review and testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants